Electronic chest drainage system